<?php
/**
 * Created by PhpStorm.
 * User: 35906
 * Date: 18.11.8
 * Time: 16:56
 */
require_once 'Group.php';
class Group42gou extends Group
{
    protected function isCallMe($content){
        static $rp_times=0;
        if($this->message['sender']['NickName']=='么么王二狗'){
            $res = preg_match('/二牛/',$content);
            if($res>0){
                $rp_times = 4;
            }elseif($rp_times-->0){
                $res = 1;
            }
        }else{
            $res = preg_match('/^\s*(@?李)?二牛(\s)?|(@?李)?二牛(\s*|.{1,4})$/',$content);
        }
        return $res>0;
    }
}